<template>
  <div class="title-row">
    <p>
      {{ title }}<span @click="_click">{{ "View all sneakers" }}</span>
    </p>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: () => ""
    },
    url: {
      type: String,
      default: () => ""
    }
  },

  methods: {
		_click() {
			this.$router.push({path:'/product', query: {title: this.title}})
		}
	}
};
</script>
<style lang="scss" scoped>
.title-row {
  height: 36px;
  margin-bottom: 10px;
  overflow: hidden;
  padding: 0 16px;
  font-weight: 700;
  font-size: 24px;
  color: #000000;
  line-height: 1.35;
  p {
    margin: 0;
    span {
      text-decoration: underline;
			line-height: 36px;
			font-weight: normal;
			cursor: pointer;
			font-size: 14px;
			margin-left: 10px;
    }
  }
}
</style>
